A basic Bar chart
This goes in the documents header:
<script src="RGraph.common.core.js"></script>
<script src="RGraph.bar.js"></script>
Put this where you want the chart to show up:
<div style="padding: 15px">
<canvas id="cvs" width="750" height="250">[No canvas support]</canvas>
</div>
This is the code that generates the chart:
<script>
new RGraph.Bar({
id: 'cvs',
data: [12,18,10,9,6,20,18],
options: {
labels: ['Monday\n(urgh!)','Tuesday','Wednesday','Thursday','Friday\n(yay!)','Saturday','Sunday'],
unitsPost: 'k',
shadow: false,
colors: ['red'],
strokestyle: 'rgba(0,0,0,0)',
textSize: 14,
title: 'A basic Bar chart using accessible text',
numyticks: 5,
noxaxis: true,
gutterLeft: 50
}
}).draw();
</script>